package unitTest;

public class Hello {
    public String sayHelloTo(String name) {
    	
    	if(name.equals("") || name.equals(null)){
    		System.out.println(String.format("沒有姓名"));
    		return String.format("沒有姓名");
    	}else{
    		System.out.println(String.format("Hello, %s!", name));
    		return String.format("Hello, %s!", name);
    	}
    }
}
